<?php

/**
 * 兑换码管理
 * User: wangchao
 * Date: 2017/3/22
 * Time: 14:20
 */
class PinkOrder extends AdminBase{

    protected $do;

    function __construct(){
        parent::__construct();
        $this->do = 'orderManage';
        $this->{$this->op}();
    }

    function indexAction(){
        include_once template("admin_v2/order");
        exit();
    }

    function indexTestAction(){
        include_once template("admin_v2/orderTest");
        exit();
    }

    function listAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'list',
        ], $this->req));
    }

    function listTestAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'listTest',
        ], $this->req));
    }

    function detailAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'detail',
        ], $this->req));
    }

    function detailTestAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'detailTest',
        ], $this->req));
    }
}

new PinkOrder;




